-- TSInstall typescript javascript html css vue json python lua bash markdown vim
require'nvim-treesitter.configs'.setup {
    highlight = {
      enable = true,                    -- false will disable the whole extension
      disable = { "c", "rust" },        -- list of language that will be disabled
      custom_captures = {               -- mapping of user defined captures to highlight groups
        -- ["foo.bar"] = "Identifier"   -- highlight own capture @foo.bar with highlight group "Identifier", see :h nvim-treesitter-query-extensions
      },
    },
    indent = {
      enable = true
    },
    incremental_selection = {
      enable = true,
      disable = { "vim" },
      keymaps = {                       -- mappings for incremental selection (visual mappings)
        init_selection = "<cr>",         -- maps in normal mode to init the node/scope selection
        node_incremental = "<CR>",      -- increment to the upper named parent
        scope_incremental = "grc",      -- increment to the upper scope (as defined in locals.scm)
        node_decremental = "grm",       -- decrement to the previous node
      }
    },
}

-- set foldmethod=expr
-- set foldexpr=nvim_treesitter#foldexpr()
